jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Fri, 10 Apr 2026 10:59:14 +0000 (22:59 +1200)
committerVladimir Petko <vladimir.petko@canonical.com>
Fri, 10 Apr 2026 10:59:14 +0000 (22:59 +1200)
commit4c0d84649ca95bf338e74c66963371e05e07ff0b
tree28d7434a0b744e9769746664b8323a2c3f7712be
parent53256369eff0950178d879cac277f53026fbc3d1
jlink: Hash of module differs to expected hash recorded in java.base

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944738
Forwarded: not-needed

The cause is the use of dh_strip_nondeterminism late in the build
process.  This reorganises the jmod files, which in turn changes their
SHA256 checksums.  This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism.  Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.

Gbp-Pq: Name reproducible-build-jmod.diff
make/CreateJmods.gmk